<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <title>鲁班 - 系统部门编辑</title>
        <!--[if lt IE 9]>
            <meta http-equiv="refresh" content="/ie" />
        <![endif]-->
        <link rel="shortcut icon" href="favicon.ico">
	    <link th:href="@{/components/bootstrap/3.3.7/css/bootstrap.min.css}" rel="stylesheet">
		<link th:href="@{/components/font-awesome/4.6.3/css/font-awesome.min.css}" rel="stylesheet">
	    <link th:href="@{/css/animate.min.css}" rel="stylesheet">
	    <link th:href="@{/css/style.css}" rel="stylesheet">
    </head>
    <body>
        <div class="ibox float-e-margins">
            <div class="ibox-content">
                <form class="form-horizontal m-t" id="form1">
                    <input type="hidden" name="id" th:value="${item?.id}" />
                    <input type="hidden" name="version" th:value="${item?.version}" />
                    <div class="form-group">
                        <label class="col-sm-3 control-label">一级部门</label>
                        <div class="radio i-checks">
                            <label>
                                <input type="radio" name="radio" value="0" disabled th:checked="${item?.pid==0}">是
                            </label>
                            <label>
                                <input type="radio" name="radio" value="1" disabled th:checked="${item?.pid!=0}">否
                            </label>
                            <input name="isRadio" type="hidden" value="0" th:value="${item?.pid}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">父级部门：</label>
                        <div class="col-sm-8">
                            <select class="form-control m-b" id="pid" disabled>
                                <option value="">---请选择---</option>
                                <option th:each="org : ${orgList}" th:value="${org.id}" th:text="${org.name}" th:selected="${item?.pid==org.id ? 'selected' : false }"></option>
                            </select>
                            <input name="pid" type="hidden">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">简称：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" id="code" name="code" placeholder="请输入简称"  th:value="${item?.code}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">全称：</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" id="name" name="name" placeholder="请输入全称"  th:value="${item?.name}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">备注：</label>
                        <div class="col-sm-8">
                            <textarea name="remark" id="remark" class="form-control" placeholder="说点什么...100个字符以内" dragonfly="true" th:text="${item?.remark}"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-3">
                            <button class="btn btn-primary" type="submit">提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        
        <script type="text/javascript" th:src="@{/js/common/require.min.js}"></script>
		<script type="text/javascript" th:src="@{/js/common/config.js}"></script>
		<script type="text/javascript" th:src="@{/js/module/sys/org/sys_org_edit.js}"></script>
    </body>
</html>